﻿using System.Windows;

namespace TwoDictionaries {

  public partial class MainWindow : Window {
    public MainWindow() {
      InitializeComponent();
      DataContext = data_;
    }

    private BindData data_ = new BindData();

    private void Add_Click(object sender, RoutedEventArgs e) {
      data_.addEntry(txtKey.Text, txtValue.Text);
    }

    private void Remove_Click(object sender, RoutedEventArgs e) {
      data_.removeEntry(txtKey.Text);
    }
  }
}
